package cn.stylefeng.guns.modular.order.mapper;

import cn.stylefeng.guns.modular.order.entity.OrderPutDetailed;
import cn.stylefeng.guns.modular.order.model.params.OrderPutDetailedParam;
import cn.stylefeng.guns.modular.order.model.result.OrderPutDetailedResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 入库订单明细表 Mapper 接口
 * </p>
 *
 * @author zhucx
 * @since 2019-07-03
 */
public interface OrderPutDetailedMapper extends BaseMapper<OrderPutDetailed> {

    /**
     * 获取列表
     *
     * @author zhucx
     * @Date 2019-07-03
     */
    List<OrderPutDetailedResult> customList(@Param("paramCondition") OrderPutDetailedParam paramCondition);

    /**
     * 获取map列表
     *
     * @author zhucx
     * @Date 2019-07-03
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") OrderPutDetailedParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author zhucx
     * @Date 2019-07-03
     */
    Page<OrderPutDetailedResult> customPageList(@Param("page") Page page, @Param("paramCondition") OrderPutDetailedParam paramCondition, @Param("condition") String condition);

    /**
     * 获取分页map列表
     *
     * @author zhucx
     * @Date 2019-07-03
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") OrderPutDetailedParam paramCondition);

	List<OrderPutDetailedResult> findListBySpec(@Param("paramCondition")OrderPutDetailedParam paramCondition);

	List<OrderPutDetailedResult> findListBySpec2(@Param("paramCondition")OrderPutDetailedParam paramCondition);

	List<OrderPutDetailedResult> findListGroupGoodsidBySpec(@Param("paramCondition")OrderPutDetailedParam dParam);

	boolean saveBatchList(@Param("list")List<OrderPutDetailedParam> list);

	List<OrderPutDetailedResult> totalListBySpec(@Param("paramCondition")OrderPutDetailedParam param);

	List<OrderPutDetailedResult> totalListByGandPSpec(@Param("paramCondition")OrderPutDetailedParam param);

}
